            <?php $u = $this->user ?>
         <script type="text/javascript">
 			$(function(){
 	 			$('#datepicker').datepicker();
 			});
 		</script>
            <form action="" method="post" id="insert-form">
   
                <div class="form-left">
                    <label for="username">Tên Đăng Nhập: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="username" class="txt" id="username" value="<?php echo $u->USERNAME?>" />
                </div>
                <div class="form-left">
                    <label for="title">Mật Khẩu: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="password" name="password" class="txt" id="password" />
                </div>
                <div class="form-left">
                    <label for="email">Email: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="email" class="txt" id="email" value="<?php echo $u->EMAIL?>" />
                </div>
                <div class="form-left">
                    <label for="title">Giới Tính: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <select name="gender">
                    <?php if($u->GENDER == "male"){?>
                    <option value="male" selected="selected">Nam</option>
                    <option value="female">Nữ</option>
                    <?php }else{?>
                    <option value="male">Nam</option>
                    <option value="female" selected="selected">Nữ</option>
                    <?php }?>
                    </select>
                </div>
                <div class="form-left">
                    <label for="DOB">Ngày Sinh: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="DOB" class="txt" id="datepicker" value="<?php echo date("m/d/Y",strtotime($u->DOB))?>" />
                </div>
                
              	<div class="form-left">
                    <label for="address">Địa Chỉ: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="address" class="txt" id="address" value="<?php echo $u->ADDRESS?>" />
                </div>
                
                <div class="form-left">
                    <label for="active">Kích Hoạt: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <select name="active">
                    <?php if($u->STATUS == 1){?>
                    <option value="1" selected="selected">Kích Hoạt</option>
                    <option value="0">Không Kích Hoạt</option>
                    <?php }else{?>
                    <option value="1">Kích Hoạt</option>
                    <option value="0" selected="selected">Không Kích Hoạt</option>
                    <?php }?>
                    </select>
                </div>
              
                <div class="clear" style="text-align:right; width:372px">
                    <input type="submit" value="Sửa" style="float:right" />
                </div>
 			</form>